function userLogin() {
    var userName = $("#username").val();
    var password = $("#password").val();

    $.ajax({
        type:"post",
        data:JSON.stringify({"mobile": userName, "password": password}),
        url:"/login/login",
        contentType:"application/json",
        async:false,
        success:function (data) {
            window.location.href=data;
        },
        error:function (data) {
            window.location.href=data.responseText;
        }
    });

};



